/**
 * @author zunqiang.Yi
 * @time 2023-10-21 14:31 PM
 * @description 定义通用的状态数据管理库
 * */ 
import { defineStore } from 'pinia'
import { initState } from './persiste'
const _initState = initState()
const useCommonStore = defineStore(
    "WanKe-common",
    {
        state():CommonStore{
            return {
                token: _initState.token || '',
                userInfo: _initState.userInfo || {}
            }
        }
    }
)
export default useCommonStore